package indzcraft.loader;

public class SocketBonus{
	private int agi = 0;
	private int ap = 0;
	private int crit = 0;
	private int mastery = 0;
	private int exp = 0;
	private int hit = 0;
	private int haste = 0;
	
	public SocketBonus(int agi, int ap, int crit, int exp, int haste, int hit, int mastery) {
		this.agi = agi;
		this.ap = ap;
		this.crit = crit;
		this.exp = exp;
		this.haste = haste;
		this.hit = hit;
		this.mastery = mastery;
	}
	public int getAp() {
		return ap;
	}
	public int getCrit() {
		return crit;
	}
	public int getMastery() {
		return mastery;
	}
	public int getExp() {
		return exp;
	}
	public int getAgi(){
		return agi;
	}
	public int getHit(){
		return hit;
	}
	public int getHaste(){
		return haste;
	}
	public String toString(){
		String text = "Socket Bonus: + ";
		if(getAgi() > 0){
			text += getAgi() + " Agility";
		}
		if(getHaste() > 0){
			text += getHaste() + " Haste Rating";
		}
		if(getHit() > 0){
			text += getHit() + " Hit Rating";
		}
		return text;
	}
}
